ASP.NET Core MVC Controls | ComponentOne
C1.Web.Mvc Namespace / FlexGridBase<T> Class / ItemValidator Property






In This Topic
    ItemValidator Property (FlexGridBase<T>)
    In This Topic
    Gets or sets a validator function to determine whether cells contain valid data.
    Syntax
    'Declaration
     
    
    <JsonConverterAttribute(C1.JsonNet.Converters.FunctionConverter)>
    Public Overridable Property ItemValidator As System.String
    'Usage
     
    
    Dim instance As FlexGridBase(Of T)
    Dim value As System.String
     
    instance.ItemValidator = value
     
    value = instance.ItemValidator
    [JsonConverter(C1.JsonNet.Converters.FunctionConverter)]
    public virtual System.string ItemValidator {get; set;}
    public read-write property ItemValidator: System.String; virtual; 
    JsonConverterAttribute(C1.JsonNet.Converters.FunctionConverter)
    public function get,set ItemValidator : System.String
    [JsonConverter(C1.JsonNet.Converters.FunctionConverter)]
    public: __property virtual System.string* get_ItemValidator();
    public: __property virtual void set_ItemValidator( 
       System.string* value
    );
    [JsonConverter(C1.JsonNet.Converters.FunctionConverter)]
    public:
    virtual property System.String^ ItemValidator {
       System.String^ get();
       void set (    System.String^ value);
    }
    Remarks
    If specified, the validator function should take two parameters containing the cell's row and column indices, and should return a string containing the error description. This property is especially useful when dealing with unbound grids, since bound grids can be validated using the BaseCollectionViewService<T>.GetError property instead.
    See Also